<template>
  <div class="pSp pubCon">
    <div class="pSpTop"><img :src="titleImg"></div>
    <div class="pSpCon">
      <!--视频位置-->
      <!--<img :src="videoCover" @click="watchVideo(videoLink)">-->
      <iframe frameborder='0' width="1100" height="640" marginheight='0' marginwidth='0' scrolling='no' src='https://v.qq.com/iframe/player.html?vid=j0726usije8&auto=0'></iframe>
    </div>
  </div>
</template>
<script>
  export default {
    name: 'mwNav',
    //数据
    data(){
      return {
        titleImg:'static/images/kwJcsp.jpg',
        spImg:'static/images/img/kwsp.jpg',
        videoCover:'',//视频封面
        videoLink:''//视频链接
      }
    },
    methods:{
      //跳转视频播放页
      watchVideo:function (videoLink) {
        window.open(videoLink);
      }
    },
    mounted(){
      var me = this;
      //pollsId=44 为 新版世界小姐官网 首页 视频链接 的轮询配置（修改方法：新丝路管理后台-内容-轮询管理-新版世界小姐官网首页视频链接）
      me.$http.get('http://m.nsr.com.cn/xinsilu/v1/polls/pollsInfo?pollsId=44&siteid=1&isShowTitle=0', {
        params: {}
      }).then(response => {
        if (response.data.code == 'R0000000') {
          me.videoCover = response.data.data[0]['titlePic']?response.data.data[0]['titlePic']:'static/images/img/kwsp.jpg';
          me.videoLink = response.data.data[0]['titleUrl'];
        }
      }, response => {
      });
    }
  }
</script>

<style>

</style>
